# -*- coding:utf-8 -*-


from ihome  import create_app,db,models
# import  ihome
from flask_migrate import Migrate,MigrateCommand,Manager
from flask import session

# 指定app的开发环境模式
# appp = ihome()
app =create_app("DevelopmentConfig")

#　实例化manage对象
manage = Manager(app)

# 关系数据库
Migrate(app,db)

# 添加命令
manage.add_command("db",MigrateCommand)


if __name__ == '__main__':
    manage.run()
